package edu.gdpi.service.impl;

import edu.gdpi.dao.GoodsDao;
import edu.gdpi.dao.impl.GoodsDaoImpl;
import edu.gdpi.entity.Goods;
import edu.gdpi.service.GoodsService;

import java.util.List;

public class GoodsServiceImpl implements GoodsService {

    private GoodsDao goodsDao = new GoodsDaoImpl();

    @Override
    public Goods queryGoodsById(int id) {
        return goodsDao.selectGoodsById(id);
    }

    @Override
    public List<Goods> queryGoodsList() {
        return goodsDao.listGoods();
    }
}
